<?php
require_once '../src/cxhtml.php';
require_once 'cxtest.php';

ExError::throw_system_errors();

try {
    $html = new CxElement(
<<<END
<html>
  <head>
  <meta http-equiv="content-type" content="text/html; charset=windows-1250"/>
  <meta name="generator" content="PSPad editor, www.pspad.com"/>
  <title>Title</title>
  </head>
  <body>
    <h1>Head</h1>
    <p class="first">First paragraph<br/>is <i>marked up</i>.</p>
    <p class="second and middle">Second paragraph</p>
    <p class="third and last"/>
    <ul>
    <li>Item 1</li>
    <li>Item 2</li>
    </ul>
  </body>
</html>
END
    );
}
catch (Exception $e) {
    EError::write($e);
    die();
}
